// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.StockOutFinishedProduct;
import com.fowo.api.model.stock.out.finished.product.StockOutFinishedProductItemVo;
import com.fowo.api.model.stock.out.finished.product.StockOutFinishedProductSearchParamPo;
import com.fowo.api.model.stock.out.finished.product.StockOutFinishedProductVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StockOutFinishedProductMapper
  extends BaseMapper<StockOutFinishedProduct> {
  Page<StockOutFinishedProductItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  List<OptionItem<StockOutFinishedProductItemVo>> searchOptions(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  List<StockOutFinishedProductItemVo> search(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  /**
   * 返回满足搜索条件的统计信息
   * @param search 搜索参数
   */
  Map<String, Object> searchForStatistical(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  Long getIdByParentId(@Param("parentId") String parentId);

  List<Long> getIdsByParentId(@Param("list") List<String> list);

  String getParentIdById(@Param("id") Long id);

  List<Map<String, Object>> getParentIdByIds(@Param("ids") List<Long> ids);
  StockOutFinishedProductVo selectVoById(@Param("id") Long id);
  /** 更新指定对象的所有计算字段值 */
  int updateCalcFields(Long id);
  /**
   * 全部
   */
  List<StockOutFinishedProductItemVo> all1(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> all1Ids(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 获取全部的总数
   */
  Long all1Count(@Param("search") StockOutFinishedProductSearchParamPo search);

  /**
   * 全部分页
   */
  Page<StockOutFinishedProductItemVo> all1Page(
    @Param("page") Page page,
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  Date all1LastUpdateTime(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  /**
   * 待提交
   */
  List<StockOutFinishedProductItemVo> changesToBeCommitted(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 获取待提交编号列表
   */
  List<Long> changesToBeCommittedIds(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 获取待提交的总数
   */
  Long changesToBeCommittedCount(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 待提交分页
   */
  Page<StockOutFinishedProductItemVo> changesToBeCommittedPage(
    @Param("page") Page page,
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  Date changesToBeCommittedLastUpdateTime(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  /**
   * 待出库
   */
  List<StockOutFinishedProductItemVo> waitingForDelivery(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 获取待出库编号列表
   */
  List<Long> waitingForDeliveryIds(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 获取待出库的总数
   */
  Long waitingForDeliveryCount(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 待出库分页
   */
  Page<StockOutFinishedProductItemVo> waitingForDeliveryPage(
    @Param("page") Page page,
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  Date waitingForDeliveryLastUpdateTime(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  /**
   * 已完成
   */
  List<StockOutFinishedProductItemVo> done(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 获取已完成编号列表
   */
  List<Long> doneIds(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 获取已完成的总数
   */
  Long doneCount(@Param("search") StockOutFinishedProductSearchParamPo search);

  /**
   * 已完成分页
   */
  Page<StockOutFinishedProductItemVo> donePage(
    @Param("page") Page page,
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  Date doneLastUpdateTime(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  /**
   * 已撤销
   */
  List<StockOutFinishedProductItemVo> undone(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 获取已撤销编号列表
   */
  List<Long> undoneIds(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 获取已撤销的总数
   */
  Long undoneCount(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );

  /**
   * 已撤销分页
   */
  Page<StockOutFinishedProductItemVo> undonePage(
    @Param("page") Page page,
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
  Date undoneLastUpdateTime(
    @Param("search") StockOutFinishedProductSearchParamPo search
  );
}
